package timing.ukulele.item.client;

import timing.ukulele.item.client.callback.FlowClientCallback;
import timing.ukulele.common.ResponseResult;
import timing.ukulele.common.flow.FlowData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "ukulele-flow",fallback = FlowClientCallback.class)
public interface FlowClient {

    @GetMapping("/flow/api/flow/getById/{id}")
    ResponseResult<FlowData> findById(@PathVariable("id") Long id);

}
